package com.hdoit.ares.logical.tp.zzb.dao.impl;

import java.util.List;

import org.springframework.stereotype.Component;

import com.hdoit.ares.logical.tp.zzb.dao.ITomeasureDao;
import com.hdoit.ares.logical.tp.zzb.model.Tomeasure;
import com.hdoit.ares.logical.viewmodel.tp.zzp.TomeasureSearch;
import com.tennetcn.common.dao.base.IFinderExpression;
import com.tennetcn.common.dao.base.impl.SuperDao;
import com.tennetcn.common.enums.OrderEnum;
import com.tennetcn.common.message.PagerModel;
import com.tennetcn.common.utils.FinderExpressionFactory;
/**
 * @author      caochengmeng
 * @email       
 * @createtime  2018年03月01日 14:30:51
 * @comment
 */
@Component
public class TomeasureDaoImpl extends SuperDao<Tomeasure> implements ITomeasureDao{
	
	@Override
	public List<Tomeasure> queryList(PagerModel pagerModel,TomeasureSearch search) {
		IFinderExpression finderExpression=FinderExpressionFactory.createExpression();
		finderExpression.select("*")
						.from(Tomeasure.class)
						.addOrder("createTime", OrderEnum.desc);
	    return queryList(finderExpression);
	}
}